package weiyao.GUI;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class VulnerabilityRecord {
    String type;
    String url;
    String payload;
    Map<String, String> details = new HashMap<>();
    // 存储所有漏洞记录
    private final List<VulnerabilityRecord> vulnerabilityRecords = new ArrayList<>();

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }

    public Map<String, String> getDetails() {
        return details;
    }

    public void setDetails(Map<String, String> details) {
        this.details = details;
    }

    public List<VulnerabilityRecord> getVulnerabilityRecords() {
        return vulnerabilityRecords;
    }

    public VulnerabilityRecord() {
    }

    public VulnerabilityRecord(String type, String url, String payload, Map<String, String> details) {
        this.type = type;
        this.url = url;
        this.payload = payload;
        this.details = details;
    }
}
